aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/settings
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-11-01 12:18:26 -0700
committerAdam Soltys <[email protected]>2023-11-11 00:04:22 -0800
commitaeb5f5001eaa3613335784f74c491ffc442ce318 (patch)
tree36ee076ae851c2c8508201770c61792bcb2d7b3b /src/routes/(app)/[username]/settings
parente2608b3fe00d4575c08846af4f7a192e4f1100ed (diff)
downloadcoinos-ui-aeb5f5001eaa3613335784f74c491ffc442ce318.tar.gz
coinos-ui-aeb5f5001eaa3613335784f74c491ffc442ce318.zip
user details
Diffstat (limited to 'src/routes/(app)/[username]/settings')
-rw-r--r--src/routes/(app)/[username]/settings/[...tab]/_security.svelte25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_security.svelte b/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
index f3df3fa3..85f461ad 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
@@ -3,7 +3,7 @@
import { tick } from 'svelte';
import { t } from '$lib/translations';
import { Pin, Icon, Qr } from '$comp';
- import { post, success, fail } from '$lib/utils';
+ import { copy, post, success, fail } from '$lib/utils';
import { pin as current } from '$lib/store';
import { invalidate } from '$app/navigation';
import { page } from '$app/stores';
@@ -223,11 +223,20 @@
</select>
</div>
-<button type="button" class="primary" on:click={toggleSeed}>
- <Icon icon="mobile" style="mr-1" />
- {$t('user.settings.revealSeed')}
-</button>
+<div class="space-y-5">
+ <button type="button" class="primary" on:click={toggleSeed}>
+ <Icon icon="warning" style="mr-1 w-6 my-auto" />
+ {revealSeed ? $t('user.settings.hideSeed') : $t('user.settings.revealSeed')}
+ </button>
+
+ {#if revealSeed}
+ <div class="text-lg">
+ {mnemonic}
+ </div>
-{#if revealSeed}
- {mnemonic}
-{/if}
+ <button type="button" class="primary" on:click={() => copy(mnemonic)}>
+ <Icon icon="copy" style="mr-1 w-6 my-auto" />
+ Copy
+ </button>
+ {/if}
+</div>